<script setup lang="ts">
import { ref, reactive, computed, onMounted } from 'vue';
import fyNavBar from './fyNavBar.vue';

let sb = (v:string) => {
  alert(v)
}

</script>

<template>
  <div>
    <div>home</div>
    <fyNavBar :title="'首页'">
      <template #left>
        <button>left66666666666666</button>
      </template>
      <template #center="obj">
        <button @click="sb(obj.msg)">center</button>
      </template>
      <template #right>
        <button>right</button>
      </template>


      <button>默认插槽内容</button>
      <button>默认插槽内容</button>
      <button>默认插槽内容</button>
      <button>默认插槽内容</button>

    </fyNavBar>
  </div>
</template>

<style scoped>
</style>